np.menuData = [{
  title: '文件(F)',
  menuItems: [
  {
    title:'新建(N)',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"新建(N)"点击!')
  },
  {
    title: '打开(O)...',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"打开(N)"点击!')
  },
  {
    title: '保存(S)',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"保存(S)"点击!')
  },
  {
    title: '另存为(A)...',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"另存为(A)"点击!')
  },
  {
    title: 'hr',
    shortcut: '',
    enabled: true,
    handler: null
  },
  {
    title: '退出(X)',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"退出(X)"点击!')
  }],
  width: '202px',
  left: '0px'
},
{
  title: '编辑(E)',
  menuItems: [{
    title: '撤销(U)',
    shortcut: 'Ctrl+Z',
    enabled: false,
    handler: function() { console.log('"撤销(U)"点击!');  }      
  }],
  width: '156px',
  left: '52px'
},
{
  title: '格式(O)',
  menuItems: [{
    title: '自动换行(W)',
    shortcut: '',
    enabled: true,
    handler: () => console.log('"自动换行(W)"点击!')
  },
  {
    title: '字体(F)...',
    shortcut: '',
    enabled: true,
    handler: () => $dlgFont.show({
      family: np.fontFamily,
      style: np.fontStyle,
      size: np.fontSize,
      okHandler: np.fontHandler
    })
  }],
  width: '156px',
  left: '106px'
},
{
  title: '查看(V)',
  menuItems: [{
    title: '状态栏(S)',
    shortcut: '',
    enabled: true,
    handler: () => {
      np.bShowStatusBar = !(typeof(np.bShowStatusBar) === 'boolean' ?
        np.bShowStatusBar :
        np.bShowStatusBar === 'true') ;
      localStorage.setItem('bShowStatusBar', np.bShowStatusBar);
      $statusBar.display(np.bShowStatusBar);
      $menubar.checked(3, 0, np.bShowStatusBar);
      $editor.resize(np.bShowStatusBar);
    }
  }],
  width: '138px',
  left: '162px'
},
{
  title: '帮助(H)',
  menuItems: [{
    title: '关于记事本(A)',
    shortcut: '',
    enabled: true,
    handler: () => $dlgAbout.show()
  }],
  width: '166px',
  left: '216px'
}];

